
@charset "UTF-8";
@import "./base.scss";

.hui-code-input{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  padding: h(10) 0;
  position: relative;
  .hui-code-input-label{
    position: absolute;
    display: inline-block;
    top:h(-10);
    font-size: 12px;
    color: #888888;
  }
}

.hui-code-input input {
  position: relative;
  border-bottom: h(1) solid $borderColor;
  color: #181818;
  height: 32px;
  line-height: 32px;
  outline: none;
  display: block;
  width: 100%;
  font-size: h(16);
}
.hui-code-input .on {
  opacity: 0;
  position: absolute;
}
.hui-code-input .line {
  position: relative;
  width: 50px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  color: #181818;
  font-size: h(16);
  line-height: h(36);
}
.hui-code-input .line::after {
  display: block;
  position: absolute;
  content: "";
  left: 0;
  width: 100%;
  bottom: 0;
  height: h(1);
  background-color: #aaaaaa;
  transform: scaleY(0.5);
  transform-origin: 0 100%;
}
.hui-code-input .line.animated::before {
  display: block;
  position: absolute;
  left: 50%;
  top: 20%;
  width: 1px;
  height: 60%;
  content: "";
  background-color: #333333;
  animation-name: coruscate;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes coruscate {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}